package com.rimi.mapper;

import com.rimi.bean.PreMed;
import com.rimi.bean.Prescription;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrescriptionMapper {

    List<Prescription> findPrescriptionByUserId(@Param("uid") Integer userId);

    int addPrescription(Prescription prescription);

    int addPreMed(PreMed preMed);

    int deletePrescriptionByUser(String prescriptionId);

    int setMedicalrecordsByUser(String appointmentTime, String petId);

    int setPrescriptionByUser(String prescriptionDate,String petsId);
}
